package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentrepeaterlogMapper;
import com.ruoyi.student.domain.Studentrepeaterlog;
import com.ruoyi.student.service.IStudentrepeaterlogService;

/**
 * 留级表Service业务层处理
 * 
 * @author hoyo
 * @date 2022-12-31
 */
@Service
public class StudentrepeaterlogServiceImpl implements IStudentrepeaterlogService 
{
    @Autowired
    private StudentrepeaterlogMapper studentrepeaterlogMapper;

    /**
     * 查询留级表
     * 
     * @param id 留级表主键
     * @return 留级表
     */
    @Override
    public Studentrepeaterlog selectStudentrepeaterlogById(Long id)
    {
        return studentrepeaterlogMapper.selectStudentrepeaterlogById(id);
    }

    /**
     * 查询留级表列表
     * 
     * @param studentrepeaterlog 留级表
     * @return 留级表
     */
    @Override
    public List<Studentrepeaterlog> selectStudentrepeaterlogList(Studentrepeaterlog studentrepeaterlog)
    {
        return studentrepeaterlogMapper.selectStudentrepeaterlogList(studentrepeaterlog);
    }

    /**
     * 新增留级表
     * 
     * @param studentrepeaterlog 留级表
     * @return 结果
     */
    @Override
    public int insertStudentrepeaterlog(Studentrepeaterlog studentrepeaterlog)
    {
        return studentrepeaterlogMapper.insertStudentrepeaterlog(studentrepeaterlog);
    }

    /**
     * 修改留级表
     * 
     * @param studentrepeaterlog 留级表
     * @return 结果
     */
    @Override
    public int updateStudentrepeaterlog(Studentrepeaterlog studentrepeaterlog)
    {
        return studentrepeaterlogMapper.updateStudentrepeaterlog(studentrepeaterlog);
    }

    /**
     * 批量删除留级表
     * 
     * @param ids 需要删除的留级表主键
     * @return 结果
     */
    @Override
    public int deleteStudentrepeaterlogByIds(Long[] ids)
    {
        return studentrepeaterlogMapper.deleteStudentrepeaterlogByIds(ids);
    }

    /**
     * 删除留级表信息
     * 
     * @param id 留级表主键
     * @return 结果
     */
    @Override
    public int deleteStudentrepeaterlogById(Long id)
    {
        return studentrepeaterlogMapper.deleteStudentrepeaterlogById(id);
    }
}
